//
//  MyPaiPriceCell.m
//  PPDL
//
//  Created by 王洋 on 2019/8/2.
//  Copyright © 2019 王洋. All rights reserved.
//

#import "MyPaiPriceCell.h"

@interface MyPaiPriceCell ()

@property (weak, nonatomic) IBOutlet UIImageView *userIcon;

@property (weak, nonatomic) IBOutlet UILabel *itemUserName;
@property (weak, nonatomic) IBOutlet UILabel *itemMemo;
@property (weak, nonatomic) IBOutlet UILabel *itemTime;

@end

@implementation MyPaiPriceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)fillCellWithModel:(UserPaiPriceModel *)model {
        
    [self.userIcon sd_setImageWithURL:[NSURL URLWithString:model.userIcon] placeholderImage:[UIImage imageNamed:@"placeholder_rect"] options:SDWebImageRetryFailed];
    
    self.itemUserName.text = [NSString stringWithFormat:@"%@",model.userName];
    self.itemMemo.text = [NSString stringWithFormat:@"  出价%@元，将获得奖励金%@元  ",[Utilities changeDoubleToString:model.price],[Utilities changeDoubleToString:model.bounty]];
    self.itemTime.text = [NSString stringWithFormat:@"%@",model.itemTime];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
